rendernode: Create Cairo surfaces as recording surfaces
authorBenjamin Otte <otte@redhat.com>
Sat, 24 Mar 2018 19:42:42 +0000 (20:42 +0100)
committerBenjamin Otte <otte@redhat.com>
Sat, 24 Mar 2018 20:57:20 +0000 (21:57 +0100)
commitdf600669a28f180c4a4958e7651ef2ae203beab4
tree71c4b6aaace32aac9fdaf6fdf4138f520ddb3c11
parentf680d5d1304817b37f5fa2213e29caa8997be6bd
rendernode: Create Cairo surfaces as recording surfaces

This way, we can postpone the actual rendeing of the node until the
renderer. This allows the renderer to choose the right scale to
render at, so it can decide to use 2x scale for hidpi on its own.

Last but not least, it makes all nodes independent of the context they
are created in, because they do not need to know at snapshot time what
they will ultimately be rendered into.
gsk/gskrendernodeimpl.c